<?php
/**
 * 会员等级查询控制器
 */
namespace app\manage\controller\level;

use app\manage\controller\Base;

class Api extends Base
{

    /**
     * 获取会员等级接口
     * @return [type] [description]
     */
    public function levels(){
        $params = $this->request->only(['id']);
        $id =isset($params['id'])?$params['id']:null;
        $data = model('level')::levelData($id);
        return json(['code'=>1,'data'=>$data]);
        //return json($data);
    }


}